package com.rzico.basics.amap.pojo.request;

/**
 * Created by lam on 2018/8/8.
 */
public class StatusRequest {

    /**
     * 请求服务权限标识
     */
    private String key;
    /**
     * 用户设备唯一标识符
     * Android 为 imei
     * ios 为 idfv
     */
    private String diu;
    /**
     * 设备在开发者自由系统中点id
     */
    private String uid;
    /**
     * 设备位置坐标组
     * 格式: x1,y1,unix_ts;x2,y2,unix_ts
     * 实例：116.472407,39.993322,1484816232
     */
    private String locations;

    /**
     * 签名
     */
    private String sig;

    public String toString() {
        String params = "?key=" + this.key + "&diu=" + this.diu + "&locations=" + this.locations;

        if (this.uid != null) {
            params += "&uid=" + this.uid;
        }

        return params;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDiu() {
        return diu;
    }

    public void setDiu(String diu) {
        this.diu = diu;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getLocations() {
        return locations;
    }

    public void setLocations(String locations) {
        this.locations = locations;
    }

    public String getSig() {
        return sig;
    }

    public void setSig(String sig) {
        this.sig = sig;
    }
}
